package com.eastcom.client;

import java.io.Serializable;
import java.lang.reflect.Field;

public class KpiAndThBean implements Serializable{
	
	
	private String kpi_id;
	
	private String kpi_cn_name;
	
	private String kpi_datasetId;
	
	private String kpi_validationType;
	
	private Double kpi_baselineValue;
	
	private Double kpi_deviationUp;
	
	private Double kpi_deviationDown;
	
	private Double kpi_threadHoldUp;
	
	private Double kpi_threadHoldDown;
	
	
	
	/*
	private String th_id;
	
	private String th_kpiId;
	
	private String th_neId;
	
	private String th_calendarPolicyUUID;
	
	private String th_validationType;
	
	private Double th_baselineValue;
	
	private Double th_deviationUp;
	
	private Double th_deviationDown;
	
	private Double th_threadHoldUp;
	
	private Double th_threadHoldDown;
    */
	
	public Double getKpi_baselineValue() {
		return kpi_baselineValue;
	}

	public String getKpi_cn_name() {
		return kpi_cn_name;
	}

	public String getKpi_datasetId() {
		return kpi_datasetId;
	}

	public Double getKpi_deviationDown() {
		return kpi_deviationDown;
	}

	public Double getKpi_deviationUp() {
		return kpi_deviationUp;
	}

	public String getKpi_id() {
		return kpi_id;
	}

	public Double getKpi_threadHoldDown() {
		return kpi_threadHoldDown;
	}

	public Double getKpi_threadHoldUp() {
		return kpi_threadHoldUp;
	}

	public String getKpi_validationType() {
		return kpi_validationType;
	}

	/*
	public Double getTh_baselineValue() {
		return th_baselineValue;
	}

	public String getTh_calendarPolicyUUID() {
		return th_calendarPolicyUUID;
	}

	public Double getTh_deviationDown() {
		return th_deviationDown;
	}

	public Double getTh_deviationUp() {
		return th_deviationUp;
	}

	public String getTh_id() {
		return th_id;
	}

	public String getTh_kpiId() {
		return th_kpiId;
	}

	public String getTh_neId() {
		return th_neId;
	}

	public Double getTh_threadHoldDown() {
		return th_threadHoldDown;
	}

	public Double getTh_threadHoldUp() {
		return th_threadHoldUp;
	}

	public String getTh_validationType() {
		return th_validationType;
	}
*/
	public void setKpi_baselineValue(Double kpi_baselineValue) {
		this.kpi_baselineValue = kpi_baselineValue;
	}

	public void setKpi_cn_name(String kpi_cn_name) {
		this.kpi_cn_name = kpi_cn_name;
	}

	public void setKpi_datasetId(String kpi_datasetId) {
		this.kpi_datasetId = kpi_datasetId;
	}

	public void setKpi_deviationDown(Double kpi_deviationDown) {
		this.kpi_deviationDown = kpi_deviationDown;
	}

	public void setKpi_deviationUp(Double kpi_deviationUp) {
		this.kpi_deviationUp = kpi_deviationUp;
	}

	public void setKpi_id(String kpi_id) {
		this.kpi_id = kpi_id;
	}

	public void setKpi_threadHoldDown(Double kpi_threadHoldDown) {
		this.kpi_threadHoldDown = kpi_threadHoldDown;
	}

	public void setKpi_threadHoldUp(Double kpi_threadHoldUp) {
		this.kpi_threadHoldUp = kpi_threadHoldUp;
	}

	public void setKpi_validationType(String kpi_validationType) {
		this.kpi_validationType = kpi_validationType;
	}
/*
	public void setTh_baselineValue(Double th_baselineValue) {
		this.th_baselineValue = th_baselineValue;
	}

	public void setTh_calendarPolicyUUID(String th_calendarPolicyUUID) {
		this.th_calendarPolicyUUID = th_calendarPolicyUUID;
	}

	public void setTh_deviationDown(Double th_deviationDown) {
		this.th_deviationDown = th_deviationDown;
	}

	public void setTh_deviationUp(Double th_deviationUp) {
		this.th_deviationUp = th_deviationUp;
	}

	public void setTh_id(String th_id) {
		this.th_id = th_id;
	}

	public void setTh_kpiId(String th_kpiId) {
		this.th_kpiId = th_kpiId;
	}

	public void setTh_neId(String th_neId) {
		this.th_neId = th_neId;
	}

	public void setTh_threadHoldDown(Double th_threadHoldDown) {
		this.th_threadHoldDown = th_threadHoldDown;
	}

	public void setTh_threadHoldUp(Double th_threadHoldUp) {
		this.th_threadHoldUp = th_threadHoldUp;
	}

	public void setTh_validationType(String th_validationType) {
		this.th_validationType = th_validationType;
	}
*/
	@Override
	public String toString() {
		StringBuffer buf=new StringBuffer();
		for(Field f:this.getClass().getDeclaredFields()){
			try {
				buf.append(f.getName()+"  :  "+f.get(this)).append("  , ");
			} catch (IllegalArgumentException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			} catch (IllegalAccessException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}		
		return buf.toString();
	}
	
	public static void main(String[] args) {
		System.out.println("start");
		System.out.println(new KpiAndThBean());
	}

	

	

}
